<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>学术资讯</title>
    <link rel="icon" href="img/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="font/iconfont.css">
    <link rel="stylesheet" href="dist/styles/main.min.css">
</head>

<body>
    <!-- top -->
    <iframe class="index-iframe" src="top.html" width="100%" height="30px" frameborder="0" scrolling="no"></iframe>
    <!-- nav -->
    <div class="index-nav">
        <div class="index-nav-cont">
            <img class="index-logo" src="img/logo.png" alt="logo" onclick="self.location='index.html'">

            <div class="index-nav-frame clearfix">
                <div class="index-nav-frame-line" tabindex="-1" onclick="self.location='index.html'">
                    首页
                </div>

                <div class="index-nav-frame-line" tabindex="-1" onclick="self.location='pdx.html'">
                    PDX
                </div>
                <div class="index-nav-frame-line" tabindex="-1">
                    <div class="index-nav-frame-line-title">用户服务方案<i class="iconfont icon-up updown"></i></div>
                    <div class="index-nav-frame-line-center">
                        <div class="index-nav-frame-line-li">
                            <a class="index-nav-a" href="fangan1.html">肿瘤患者服务方案</a>
                        </div>
                        <div class="index-nav-frame-line-li">
                            <a class="index-nav-a" href="fangan2.html">科研机构服务方案</a>
                        </div>
                        <div class="index-nav-frame-line-li">
                            <a class="index-nav-a" href="fangan3.html">药物研发企业服务方案</a>
                        </div>
                    </div>
                </div>
                <div class="index-nav-frame-line active" tabindex="-1" onclick="self.location='information.html'">
                    学术资讯
                </div>
                <div class="index-nav-frame-line" tabindex="-1" onclick="self.location='about.html'">
                    关于我们
                </div>
                <!-- <div class="index-nav-frame-line" tabindex="-1" onclick="self.location='join.html'">
                    加入我们
                </div> -->
            </div>
        </div>
    </div>
    <!-- banner -->
    <div class="index-banner">
        <img src="img/info-banner.png" width="100%">
    </div>
    <div class="min-width info-tab">
        <ul class="info-tab-ul">
            <li class="info-tab-items on" onclick="quanbu()">全部</li>
            <li class="info-tab-items" onclick="news()">新闻资讯</li>
            <li class="info-tab-items" onclick="dongtai()">学术动态</li>
        </ul>
        <div class="index-nav-frame-line" tabindex="-1">
            <div class="paixu">排序<i class="iconfont icon-up updown"></i></div>
            <div class="index-nav-frame-line-center paixu-cont">
                <div class="index-nav-frame-line-li on" onclick="zonghe()">
                    <a class="index-nav-a">综合</a>
                </div>
                <div class="index-nav-frame-line-li" onclick="zuixin()">
                    <a class="index-nav-a">最新</a>
                </div>
            </div>
        </div>
    </div>
    <!-- 学术资讯 -->
    <div class="index-article bg-f9 info-article">
        <div class="min-width index-academic">
            <div id="academicCont">
                <!-- <a href="information-detail.html">
                    <div class="index-academic-items">
                        <img class="index-academic-items-img" src="img/academic-img1.png">
                        <ul class="academic-items-ul">
                            <li class="academic-items-title">肿瘤诊断和免疫治疗的临床检测</li>
                            <li class="academic-items-t">是国内首家由中国医学院参与并发展的高科技企业，创立了比较医学学科，系统的比较医学分析评价技术（肿瘤学、病理学、药理学）
                            </li>
                            <li class="academic-items-b"><span>硕康源-新闻资讯</span><span class="academic-items-b-date">2018-11-01
                                    13:28</span></li>
                        </ul>
                    </div>
                </a> -->
            </div>
            <div class="comp-produce-btn public-button bus-scope-center-btn show-more" onclick="more()">浏览更多</div>
        </div>
    </div>
    <!-- footer -->
    <iframe class="index-iframe" id="footer" src="foot.html" frameborder="0" scrolling="no" width="100%" height="260px"></iframe>
    <!-- 浮动面板 -->
    <div class="quick-right">
        <div class="quick-right-cont">
            <ul class="quick-right-ul">
                <li class="quick-right-items" id="erweima"><i class="iconfont icon-erweima"></i></li>
                <li class="quick-right-items" id="quickTel"><i class="iconfont icon-phone"></i></li>
                <li class="quick-right-items" id="quickEmail" onclick="self.location='service.html?id=3'"><i class="iconfont icon-mail"></i></li>
                <li class="quick-right-items" id="top"><i class="iconfont icon-xiangshangshouqi-xianxingyuankuang"></i></li>
            </ul>
            <div class="quick-right-img">
                <p class="quick-right-img-ms">扫码关注微信公众号</p>
                <img src="img/erweima.png" width="100%">
            </div>
            <div class="quick-right-tel">
                <p>联系电话</p>
                <p>010-67779532</p>
            </div>
        </div>
    </div>
</body>
<script src="dist/js/main.min.js"></script>
<script src="layer/layer.js"></script>
<script src="config/api.js"></script>
<script>
    // 利用事件捕获提高js效率
    $(".info-tab-ul").click(function (e) {
        $(e.target).addClass("on").siblings().removeClass("on");
    });
    $(".index-nav-frame-line-li").click(function (e) {
        $(this).addClass("on").siblings().removeClass("on");
    });

    /*
    资讯
    informationType 类型-1 全部  0新闻资讯  1学术动态
    rule 排序 ID默认 PUBLISH_TIME 最新
    */
    let page = '0';
    let informationType = '-1';
    let rule = 'ID';

    function zixun(informationType, rule, page) {
        $.ajax({
            method: "post",
            url: ajaxUrl + "/information/listInterface",
            dataTypt: "json",
            async: true,
            data: JSON.stringify({
                "informationType": informationType,
                "rule": rule,
                "page": page
            }),
            contentType: 'application/json;charset=UTF-8',
            success: function (res) {
                if (res.code == 200) {
                    let list = res.content.list;
                    let count = res.content.count;
                    let html = '';
                    for (let i = 0; i < list.length; i++) {
                        if (list[i].informationSource == 0) {
                            html += '<a href="information-detail.html?id=' + list[i].id +
                                '"><div class="index-academic-items">'
                        } else {
                            html += '<a href="' + list[i].informationAdress +
                                '" target="_block"><div class="index-academic-items">'
                        }
                        html += '<img class="index-academic-items-img" src="' + list[i].informationImg +
                            '" />'
                        html += '<ul class="academic-items-ul">'
                        html += '<li class="academic-items-title">' + list[i].informationName + '</li>'
                        html += '<li class="academic-items-t">' + list[i].informationAbstract + '</li>'
                        if (list[i].informationType == 0) {
                            html +=
                                '<li class="academic-items-b"><span>硕康源-新闻资讯</span><span class="academic-items-b-date">' +
                                list[i].publishTime + '</span></li>'
                        } else {
                            html +=
                                '<li class="academic-items-b"><span>硕康源-学术动态</span><span class="academic-items-b-date">' +
                                list[i].publishTime + '</span></li>'
                        }
                        html += '</ul></div></a>'
                    }
                    $("#academicCont").html(html);
                    // 显示浏览更多的时机
                    if (count > 10 && list.length == 10) {
                        $(".show-more").show();
                    } else {
                        $(".show-more").hide();
                    }
                } else {
                    layer.msg(msgErro);
                }
            },
            error: function () {
                layer.msg(msgAjaxErro);
            }
        })
    };
    zixun(informationType, rule, page);
    // 分页 浏览更多
    function more() {
        page++;
        zixun(informationType, rule, page);
    };
    // 全部
    function quanbu() {
        page = "0";
        informationType = "-1"
        zixun(informationType, rule, page);
    };
    // 新闻资讯
    function news() {
        page = "0";
        informationType = "0"
        zixun(informationType, rule, page);
    };
    // 学术动态
    function dongtai() {
        page = "0";
        informationType = "1"
        zixun(informationType, rule, page);
    };
    // 综合
    function zonghe() {
        page = "0";
        rule = "ID";
        zixun(informationType, rule, page);
    };
    // 最新
    function zuixin() {
        rule = "PUBLISH_TIME";
        zixun(informationType, rule, page);
    }
</script>

</html>